import fetch from '@/utils/fetch'
const SiteApi = {
    getPageList (params) {
      return fetch({
        url: '/api/recycle/site/page',
        method: 'get',
        params: params
      })
    },
    add (params) {
      return fetch({
        url: '/api/recycle/site/add',
        method: 'post',
        data: params
      })
    },
    update (params) {
      return fetch({
        url: '/api/recycle/site/' + params.id,
        method: 'put',
        data: params
      })
    },
    del (params) {
      return fetch({
        url: '/api/recycle/site/' + params,
        method: 'delete'
      })
    },
    // 预加载区域回收企业信息
    getCompanylist (params) {
        return fetch({
          url: '/api/recycle/company/list',
          method: 'get',
          params: params
        })
      },
  }
  export default SiteApi
  